<div class="row">
    <div class="col-3">
        <div class="card border-0 rounded-0" style="font-size: .9em;">
            <div class="card-header text-white px-2 py-1 bg-secondary rounded-0">
                <i class="fa fa-circle-o mr-2"></i>待办中<span class="badge badge-light mt-1 pull-right">{{summary.created}}</span>
            </div>

            <div class="card-body m-0 p-0" style="background: #eee">
                {% for _, info in ipairs(tasks.created) do %}
                <div class="card m-1 rounded-0">
                    <div class="card-body m-0 py-1 px-2">
                        <span class="d-inline-block text-truncate mw-100">                            
                            <span class="{{weights[info.weight].color}}">【{{weights[info.weight].title}}】</span>
                            <span class="text-muted">#{{info.id}}</span>
                            <a href="#" class="task-link" onclick="return open_task('{{info.id}}');">{{info.name}}</a>
                        </span><br>
                        {% if #info.tags > 0 then %}
                        <span class="d-inline-block text-truncate mw-100">
                            {% for _, tag in ipairs(info.tags) do %}
                            <span class="badge {{tags[tag].color}} mr-1">{{tags[tag].title}}</span>
                            {% end %}
                        </span><br>
                        {% end %}
                        <small class="d-inline-block text-truncate mw-100" style="min-width: 100%">
                            <span class="{{info.delayed and 'text-danger' or ''}}"><i class="fa fa-calendar mr-1"></i>{{string.format('%02d.%02d', info.end_time.month, info.end_time.day)}}</span>
                            <span class="pull-right">
                                <span class="badge badge-dark text-white ml-2">{{info.creator_name}}</span>
                                <i class="fa fa-chevron-right mx-1"></i>
                                <span class="badge badge-dark text-white">{{info.assigned_name}}</span>
                            </span>
                        </small>
                    </div>
                </div>
                {% end %}
            </div>
        </div>
    </div>
    <div class="col-3">
        <div class="card border-0 rounded-0" style="font-size: .9em;">
            <div class="card-header text-white px-2 py-1 rounded-0 bg-info">
                <i class="fa fa-dot-circle-o mr-2"></i>开发中<span class="badge badge-light mt-1 pull-right">{{summary.underway}}</span>
            </div>

            <div class="card-body m-0 p-0" style="background-color: #eee;">
                {% for _, info in ipairs(tasks.underway) do %}
                <div class="card m-1 rounded-0">
                    <div class="card-body m-0 py-1 px-2">
                        <span class="d-inline-block text-truncate mw-100">                            
                            <span class="{{weights[info.weight].color}}">【{{weights[info.weight].title}}】</span>
                            <span class="text-muted">#{{info.id}}</span>
                            <a href="#" class="task-link" onclick="return open_task('{{info.id}}');">{{info.name}}</a>
                        </span><br>
                        {% if #info.tags > 0 then %}
                        <span class="d-inline-block text-truncate mw-100">
                            {% for _, tag in ipairs(info.tags) do %}
                            <span class="badge {{tags[tag].color}} mr-1">{{tags[tag].title}}</span>
                            {% end %}
                        </span><br>
                        {% end %}
                        <small class="d-inline-block text-truncate mw-100" style="min-width: 100%">
                            <span class="{{info.delayed and 'text-danger' or ''}}"><i class="fa fa-calendar mr-1"></i>{{string.format('%02d.%02d', info.end_time.month, info.end_time.day)}}</span>
                            <span class="pull-right">
                                <span class="badge badge-dark text-white ml-2">{{info.creator_name}}</span>
                                <i class="fa fa-chevron-right mx-1"></i>
                                <span class="badge badge-dark text-white">{{info.assigned_name}}</span>
                            </span>
                        </small>
                    </div>
                </div>
                {% end %}
            </div>
        </div>
    </div>
    <div class="col-3">
        <div class="card border-0 rounded-0" style="font-size: .9em;">
            <div class="card-header text-white px-2 py-1 rounded-0 bg-primary">
                <i class="fa fa-exclamation-circle mr-2"></i>测试中<span class="badge badge-light mt-1 pull-right">{{summary.testing}}</span>
            </div>

            <div class="card-body m-0 p-0" style="background-color: #eee">
                {% for _, info in ipairs(tasks.testing) do %}
                <div class="card m-1 rounded-0">
                    <div class="card-body m-0 py-1 px-2">
                        <span class="d-inline-block text-truncate mw-100">                            
                            <span class="{{weights[info.weight].color}}">【{{weights[info.weight].title}}】</span>
                            <span class="text-muted">#{{info.id}}</span>
                            <a href="#" class="task-link" onclick="return open_task('{{info.id}}');">{{info.name}}</a>
                        </span><br>
                        {% if #info.tags > 0 then %}
                        <span class="d-inline-block text-truncate mw-100">
                            {% for _, tag in ipairs(info.tags) do %}
                            <span class="badge {{tags[tag].color}} mr-1">{{tags[tag].title}}</span>
                            {% end %}
                        </span><br>
                        {% end %}
                        <small class="d-inline-block text-truncate mw-100" style="min-width: 100%">
                            <span class="{{info.delayed and 'text-danger' or ''}}"><i class="fa fa-calendar mr-1"></i>{{string.format('%02d.%02d', info.end_time.month, info.end_time.day)}}</span>
                            <span class="pull-right">
                                <span class="badge badge-dark text-white ml-2">{{info.creator_name}}</span>
                                <i class="fa fa-chevron-right mx-1"></i>
                                <span class="badge badge-dark text-white">{{info.assigned_name}}</span>
                            </span>
                        </small>
                    </div>
                </div>
                {% end %}
            </div>
        </div>
    </div>
    <div class="col-3">
        <div class="card border-0 rounded-0" style="font-size: .9em;">
            <div class="card-header text-white px-2 py-1 rounded-0 bg-success">
                <i class="fa fa-check-circle mr-2"></i>已完成<span class="badge badge-light mt-1 pull-right">{{summary.finished}}</span>
            </div>

            <div class="card-body m-0 p-0" style="background-color: #eee">
                {% for _, info in ipairs(tasks.finished) do %}
                <div class="card m-1 rounded-0">
                    <div class="card-body m-0 py-1 px-2">
                        <span class="d-inline-block text-truncate mw-100">                            
                            <span class="{{weights[info.weight].color}}">【{{weights[info.weight].title}}】</span>
                            <span class="text-muted">#{{info.id}}</span>
                            <a href="#" class="task-link" onclick="return open_task('{{info.id}}');">{{info.name}}</a>
                        </span><br>
                        {% if #info.tags > 0 then %}
                        <span class="d-inline-block text-truncate mw-100">
                            {% for _, tag in ipairs(info.tags) do %}
                            <span class="badge {{tags[tag].color}} mr-1">{{tags[tag].title}}</span>
                            {% end %}
                        </span><br>
                        {% end %}
                        <small class="d-inline-block text-truncate mw-100" style="min-width: 100%">
                            <span class="{{info.delayed and 'text-danger' or ''}}"><i class="fa fa-calendar mr-1"></i>{{string.format('%02d.%02d', info.end_time.month, info.end_time.day)}}</span>
                            <span class="pull-right">
                                <span class="badge badge-dark text-white ml-2">{{info.creator_name}}</span>
                                <i class="fa fa-chevron-right mx-1"></i>
                                <span class="badge badge-dark text-white">{{info.assigned_name}}</span>
                            </span>
                        </small>
                    </div>
                </div>
                {% end %}
            </div>
        </div>
    </div>
</div>